<script  language="javascript" type="text/javascript">
	
	$(document).ready(function()
	{
			$('#btnClick').click(function(event){
				//jAlert('you click', "warning",'warningboxid');
				jalert('you click', "warning");
			});
	});
</script>
<?php include_once('helper/FormHelper.php'); ?>
<div>
	<?php echo link_to('Learn vietnamese online >','@homepage') ?>
	<?php
		if( isset($coursename ) )
			echo link_to( $coursename . '>', 'course/show?id='. $sf_request->getParameter('courseid',0) );
		else
			echo "Unknow";
	?>
	<?php
		if(isset($levelname))
			echo link_to( $levelname, 'level/show?id=' . $sf_request->getParameter('levelid',0) . '&courseid='.$sf_request->getParameter('courseid',0) );
		else
			echo "Unknow";
	?>
	<ul id="qnavlist" >
	<li><p id="qheader" style="border-bottom:1px solid #CCCC00; " ><?php echo $coursename . ' - '. $levelname ?> </p></li>
	<li><?php echo link_to('LevelTest', 'leveltest/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='.$sf_request->getParameter('levelid',0)); ?></li>
	<li>Schedule</li>
	<li><?php echo link_to('Syllabus', 'syllabus/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='.$sf_request->getParameter('levelid',0) );?></li>
	<li><?php echo link_to('Level Study Kit', 'levelstudykit/index?courseid='.$sf_request->getParameter('courseid',0).'&levelid='.$sf_request->getParameter('levelid',0) );?></li>
	</ul>
	<p><?php echo link_to('SignUp', '@homepage') ?></p>
</div>
<?php  echo form_tag( ('leveltest/show?courseid='.$sf_request->getParameter('courseid',0).'&levelid='.$sf_request->getParameter('levelid',0)) );?>
<!-- hiden field -->
<?php echo  input_hidden_tag('txtlistid', $listId)  ?>
<div>
<p>please fill the following fields with your details so that our representative can contact you with the test results</p>
<table>
	<tr>
		<td>First Name</td>
		<td><?php echo input_tag('txtFirstname','') ?></td>
		<td>Last Name</td>
		<td><?php echo input_tag('txtLastname','') ?></td>		
	</tr>
	<tr>
		<td>Email</td>
		<td><?php echo input_tag('txtEmail','') ?></td>
		<td>Phone</td>
		<td><?php echo input_tag('txtPhone','') ?></td>		
	</tr>
</table>
</div>
<p style="font-size:16px; font-weight: bold; background-color:#FFFF00 ">Mark the write Answer</p>
<div>
    <?php foreach ($test_list as $test): ?>
	<p><?php echo $test->getQuestionSubject() ;?></p>
			<?php foreach ($listAnswer[$test->getId()] as $answer): ?>
				<p><?php echo radiobutton_tag('answer['. $test->getId() . ']', $answer->getAnswer(), false); ?><?php echo $answer->getAnswer(); ?></p>
		    <?php endforeach; ?>
    <?php endforeach; ?>	
</div>
<?php  echo submit_tag('send') ?>
</form>
<!--  <a href="<?php echo url_for('leveltest/new') ?>">New</a> -->